package com.turman.coroutionsample.net

import retrofit2.http.GET
import retrofit2.http.Query

interface GithubApi {
    @GET("search/repositories")
    suspend fun searchRepositors(
        @Query("q") words: String,
        @Query("page") page: Int = 1,
        @Query("per_page") pageSize: Int = 30,
        @Query("sort") sort: String = "stars",
        @Query("order") order: String = "desc",
    ): RepositorResult
}